<style type="text/css">
    .sm-st {
        background: #fff;
        padding: 20px;
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        margin-bottom: 20px;
        -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
    }

    .sm-st-icon {
        width: 60px;
        height: 60px;
        display: inline-block;
        line-height: 60px;
        text-align: center;
        font-size: 30px;
        background: #eee;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
        float: left;
        margin-right: 10px;
        color: #fff;
    }

    .sm-st-info {
        font-size: 12px;
        padding-top: 2px;
    }

    .sm-st-info span {
        display: block;
        font-size: 24px;
        font-weight: 600;
    }

    .orange {
        background: #fa8564 !important;
    }

    .tar {
        background: #45cf95 !important;
    }

    .sm-st .green {
        background: #86ba41 !important;
    }

    .pink {
        background: #AC75F0 !important;
    }

    .yellow-b {
        background: #fdd752 !important;
    }

    .stat-elem {

        background-color: #fff;
        padding: 18px;
        border-radius: 40px;

    }

    .stat-info {
        text-align: center;
        background-color: #fff;
        border-radius: 5px;
        margin-top: -5px;
        padding: 8px;
        -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        font-style: italic;
    }

    .stat-icon {
        text-align: center;
        margin-bottom: 5px;
    }

    .st-red {
        background-color: #F05050;
    }

    .st-green {
        background-color: #27C24C;
    }

    .st-violet {
        background-color: #7266ba;
    }

    .st-blue {
        background-color: #23b7e5;
    }
    .st-navy-blue {
        background-color: #3F5FE3;
    }

    .stats .stat-icon {
        color: #28bb9c;
        display: inline-block;
        font-size: 26px;
        text-align: center;
        vertical-align: middle;
        width: 50px;
        float: left;
    }

    .stat {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }

    .stat .value {
        font-size: 20px;
        line-height: 24px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 500;
    }

    .stat .name {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .stat.lg .value {
        font-size: 26px;
        line-height: 28px;
    }

    .stat.lg .name {
        font-size: 16px;
    }

    .stat-col .progress {
        height: 2px;
    }

    .stat-col .progress-bar {
        line-height: 2px;
        height: 2px;
    }

    .item {
        padding: 30px 0;
    }


    #statistics .panel {
        min-height: 150px;
    }

    #statistics .panel h5 {
        font-size: 13px;
    }
    .div-box {
        background: #FFF;margin: 15px;border-radius: 10px;box-shadow: 2px 2px 2px #CCC;
    }
    body{
        background:#f5f6f9 !important;
    }
    .qd_height{
        margin-bottom:15px;
        display: flex;
        justify-content: space-between;
        margin-top:20px;
    }
    .qd_color{
        background:#f5f6f9 !important;
        width:48%;
        padding:14px 20px;
        display: flex;
        justify-content: space-between;
        align-content: center;
    }
    .qd_left{
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    .qd_span_1{
        margin-left:10px;
        flex-shrink: 0;
    }
    .qd_span_2{
        margin-left:45px;
    }
</style>
<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        {:build_heading(null, false)}
        <ul class="nav nav-tabs">
            <li class="active"><a href="#one" data-toggle="tab">我的看板</a></li>
            <li><a href="#two" data-toggle="tab">团队看板</a></li>
        </ul>
    </div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="row">
                    <div class="col-xs-12 col-md-6">
                        <div class=" div-box">
                            <div style="padding-top: 15px;padding-left:15px;margin-bottom:10px;border-bottom: 1px solid #ccc">
                                <h4>销售简报</h4>
                                <p class="text-muted">按日统计客户来源情况</p>
                            </div>
                            <div  style="width:100%;height: 357px;overflow-y:auto;padding:15px">
                                <div class="qd_height">
                                    <div class="qd_color qd_width_1">
                                        <div class="qd_left">
                                            <span><img src="/assets/addons/qingdong/mini/index_btn_3.png" width="23px" height="23px"></span>
                                            <span class="qd_span_1">今日新增客户</span>
                                        </div>
                                        <span class="qd_span_2">{$Persontodaycontomer}</span>
                                    </div>
                                    <div class="qd_color qd_width">
                                        <div class="qd_left">
                                            <span><img src="/assets/addons/qingdong/mini/index_btn_4.png" width="23px" height="23px"></span>
                                            <span class="qd_span_1">今日跟进记录</span>
                                        </div>
                                        <span class="qd_span_2">{$Persontodayrecord}</span>
                                    </div>
                                </div>
                                <div class="qd_height">
                                    <div class="qd_color qd_width_1">
                                        <div class="qd_left">
                                            <span><img src="/assets/addons/qingdong/mini/index_btn_2.png" width="23px" height="23px"></span>
                                            <span class="qd_span_1">今日新增线索</span>
                                        </div>
                                        <span class="qd_span_2">{$Persontodaylead}</span>
                                    </div>
                                    <div class="qd_color qd_width">
                                        <div class="qd_left">
                                            <span><img src="/assets/addons/qingdong/mini/index_btn_1.png" width="23px" height="23px"></span>
                                            <span class="qd_span_1">今日新增公海</span>
                                        </div>
                                        <span class="qd_span_2">{$Persontodaysea}</span>
                                    </div>
                                </div>
                                <div class="qd_height">
                                    <div class="qd_color qd_width_1">
                                        <div class="qd_left">
                                            <span><img src="/assets/addons/qingdong/mini/index_btn_5.png" width="23px" height="23px"></span>
                                            <span class="qd_span_1">今日新增合同</span>
                                        </div>
                                        <span class="qd_span_2">{$Persontodaycontract}</span>
                                    </div>
                                    <div class="qd_color qd_width">
                                        <div class="qd_left">
                                            <span><img src="/assets/addons/qingdong/mini/index_btn_6.png" width="23px" height="23px"></span>
                                            <span class="qd_span_1">今日新增回款</span>
                                        </div>
                                        <span class="qd_span_2">{$Persontodayreceivables}</span>
                                    </div>
                                </div>
                                <div class="qd_height">
                                    <div class="qd_color qd_width_1">
                                        <div class="qd_left">
                                            <span><img src="/assets/addons/qingdong/mini/index_btn_13.png" width="23px" height="23px"></span>
                                            <span class="qd_span_1">今日已审批</span>
                                        </div>
                                        <span class="qd_span_2">{$Persontodayexamine}</span>
                                    </div>
                                    <div class="qd_color qd_width">
                                        <div class="qd_left">
                                            <span><img src="/assets/addons/qingdong/mini/index_btn_12.png" width="23px" height="23px"></span>
                                            <span class="qd_span_1">今日待审批</span>
                                        </div>
                                        <span class="qd_span_2">{$Persontodaywork}</span>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12 col-md-6">
                        <div class="div-box">
                            <div style="padding-top: 15px;padding-left:15px;margin-bottom:10px;border-bottom: 1px solid #ccc">
                                <h4>回款金额统计</h4>
                                <p class="text-muted">按月统计近一年回款情况</p>
                            </div>
                            <div id="echart3" style="width:100%;height: 357px"></div>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-xs-12 col-md-6">
                        <div class=" div-box">
                            <div style="padding-top: 15px;padding-left:15px;margin-bottom:10px;border-bottom: 1px solid #ccc">
                                <h4>客户来源统计</h4>
                                <p class="text-muted">按月统计近一年客户来源情况</p>
                            </div>
                            <div id="echart" style="width:100%;height: 500px"></div>
                        </div>
                    </div>
                    <div class="col-xs-12 col-md-6">
                        <div class="div-box">
                            <div style="padding-top: 15px;padding-left:15px;margin-bottom:10px;border-bottom: 1px solid #ccc">
                                <h4>合同金额统计</h4>
                                <p class="text-muted">按月统计近一年合同签署情况</p>
                            </div>
                            <div id="echart2" style="width:100%;height: 500px"></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="tab-pane fade" id="two">
                <div class="row">
                    <div class="col-xs-12 col-md-6">
                        <div class=" div-box">
                            <div style="padding-top: 15px;padding-left:15px;margin-bottom:10px;border-bottom: 1px solid #ccc">
                                <h4>销售简报</h4>
                                <p class="text-muted">按日统计客户来源情况</p>
                            </div>
                            <div  style="width:100%;height: 357px;overflow-y:auto;padding:15px">
                                <div class="qd_height">
                                    <div class="qd_color qd_width_1">
                                        <div class="qd_left">
                                            <span><img src="/assets/addons/qingdong/mini/index_btn_3.png" width="23px" height="23px"></span>
                                            <span class="qd_span_1">今日新增客户</span>
                                        </div>
                                        <span class="qd_span_2">{$todaycontomer}</span>
                                    </div>
                                    <div class="qd_color qd_width">
                                        <div class="qd_left">
                                            <span><img src="/assets/addons/qingdong/mini/index_btn_4.png" width="23px" height="23px"></span>
                                            <span class="qd_span_1">今日跟进记录</span>
                                        </div>
                                        <span class="qd_span_2">{$todayrecord}</span>
                                    </div>
                                </div>
                                <div class="qd_height">
                                    <div class="qd_color qd_width_1">
                                        <div class="qd_left">
                                            <span><img src="/assets/addons/qingdong/mini/index_btn_2.png" width="23px" height="23px"></span>
                                            <span class="qd_span_1">今日新增线索</span>
                                        </div>
                                        <span class="qd_span_2">{$todaylead}</span>
                                    </div>
                                    <div class="qd_color qd_width">
                                        <div class="qd_left">
                                            <span><img src="/assets/addons/qingdong/mini/index_btn_1.png" width="23px" height="23px"></span>
                                            <span class="qd_span_1">今日新增公海</span>
                                        </div>
                                        <span class="qd_span_2">{$todaysea}</span>
                                    </div>
                                </div>
                                <div class="qd_height">
                                    <div class="qd_color qd_width_1">
                                        <div class="qd_left">
                                            <span><img src="/assets/addons/qingdong/mini/index_btn_5.png" width="23px" height="23px"></span>
                                            <span class="qd_span_1">今日新增合同</span>
                                        </div>
                                        <span class="qd_span_2">{$todaycontract}</span>
                                    </div>
                                    <div class="qd_color qd_width">
                                        <div class="qd_left">
                                            <span><img src="/assets/addons/qingdong/mini/index_btn_6.png" width="23px" height="23px"></span>
                                            <span class="qd_span_1">今日新增回款</span>
                                        </div>
                                        <span class="qd_span_2">{$todayreceivables}</span>
                                    </div>
                                </div>
                                <div class="qd_height">
                                    <div class="qd_color qd_width_1">
                                        <div class="qd_left">
                                            <span><img src="/assets/addons/qingdong/mini/index_btn_13.png" width="23px" height="23px"></span>
                                            <span class="qd_span_1">今日已审批</span>
                                        </div>
                                        <span class="qd_span_2">{$todayexamine}</span>
                                    </div>
                                    <div class="qd_color qd_width">
                                        <div class="qd_left">
                                            <span><img src="/assets/addons/qingdong/mini/index_btn_12.png" width="23px" height="23px"></span>
                                            <span class="qd_span_1">今日待审批</span>
                                        </div>
                                        <span class="qd_span_2">{$todaywork}</span>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                    <div class="col-xs-12 col-md-6">
                        <div class="div-box">
                            <div style="padding-top: 15px;padding-left:15px;margin-bottom:10px;border-bottom: 1px solid #ccc">
                                <h4>回款金额统计</h4>
                                <p class="text-muted">按月统计近一年回款情况</p>
                            </div>
                            <div id="echart5" style="width:100%;height: 357px"></div>
                        </div>
                    </div>
                </div>

                <div class="row">
                    <div class="col-xs-12 col-md-6">
                        <div class=" div-box">
                            <div style="padding-top: 15px;padding-left:15px;margin-bottom:10px;border-bottom: 1px solid #ccc">
                                <h4>客户来源统计</h4>
                                <p class="text-muted">按月统计近一年客户来源情况</p>
                            </div>
                            <div id="echart6" style="width:100%;height: 500px"></div>
                        </div>
                    </div>
                    <div class="col-xs-12 col-md-6">
                        <div class="div-box">
                            <div style="padding-top: 15px;padding-left:15px;margin-bottom:10px;border-bottom: 1px solid #ccc">
                                <h4>合同金额统计</h4>
                                <p class="text-muted">按月统计近一年合同签署情况</p>
                            </div>
                            <div id="echart7" style="width:100%;height: 500px"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
    var Orderdata = {
        sourcedata:{:json_encode($sourcedata,JSON_UNESCAPED_UNICODE)},
    contactdata:{:json_encode($contactdata)},
    personcontactdata:{:json_encode($Personcontactdata)},
    Personsourcedata:{:json_encode($Personsourcedata,JSON_UNESCAPED_UNICODE)}
    };
</script>